﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MealList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.MealList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" class="pageForm" runat="Server">
<%=_framePage.TabInfoHtml()%>

<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
			    <span>商品名称&nbsp;</span>
			    <asp:TextBox ID="tb_search_name" runat="server" cond="name" ctltype="textbox"></asp:TextBox>&nbsp;&nbsp;
			</li>
			<li>
			    <span>商品代码&nbsp;</span>
				<asp:TextBox ID="tb_search_productno" runat="server" cond="productno" ctltype="textbox"></asp:TextBox>&nbsp;&nbsp;
			</li>
			<li>
			    <span>状态&nbsp;</span>
				<asp:dropdownlist runat="server" ID="ddl_status" cond="status" ctltype="dropdownlist" width="150px">
                </asp:dropdownlist>
			</li>
		</ul>
	    <div class="subBar">
			<ul>
			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;检&nbsp;索&nbsp;</span></a>&nbsp;&nbsp;
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href='/SystemManage/Basics/MealInfo/MealAdd.aspx' target="navTab" rel="addptmember" title="产品-增加"><span>添加</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="115">
	<table class="list" width="100%" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="5%" style="display: none">编号</th>
				<th width="15%">缩略图</th>
				<th width="15%">商品编码</th>
				<th width="25%">商品名称</th>
				<th width="15%">所属分类</th>
				<th width="10%">市场价</th>
				<th width="10%">会员价</th>
				<th width="10%">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid" rel='<%# Eval("Id")%>'>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td style="display: none"><span><%# Eval("Id")%></td>
				    <td><img src="<%# FileKit.FirstFilePath(Eval("ThumbnailImg").ToString()) %>.thumb.jpg" alt="" width="80px" /></td>
				    <td><%# Eval("ProductNo")%></td>
				    <td><%# Eval("ProductName")%></td>
				    <td><%# ParamKit.GetValue("ProductType", Eval("TypeId").ToString(), "&nbsp")%></td>
				    <td><%# Eval("SalePrice", "{0:0.00}") %></td>
				    <td><%# Eval("MarketPrice", "{0:0.00}") %></td>
				    <td> 
				        <a href="/SystemManage/Basics/MealInfo/MealEdit.aspx?pid=<%# Eval("Id")%>" onclick="ZLAN_DWZ_EX.open(this);" target="navTab" title="产品-编辑" rel="editptmember">编辑</a>&nbsp;&nbsp;
                         <%# ShowLink( Eval("Id").ToString(), Eval("Status").ToString()==null ? "0" : Eval("Status").ToString())%>&nbsp;&nbsp; 
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
</div>	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>